Integrand size = 22, antiderivative size = 68 \[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\frac {2 \sqrt {x}}{a}-\frac {4 b \text {arctanh}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )}{\sqrt {a+b}}\right )}{a \sqrt {a-b} \sqrt {a+b} d} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4289, 3868, 2738, 214} \[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\frac {2 \sqrt {x}}{a}-\frac {4 b \text {arctanh}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )}{\sqrt {a+b}}\right )}{a d \sqrt {a-b} \sqrt {a+b}} \]
[In]
[Out]
Rule 214
Rule 2738
Rule 3868
Rule 4289
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int \frac {1}{a+b \sec (c+d x)} \, dx,x,\sqrt {x}\right ) \\ & = \frac {2 \sqrt {x}}{a}-\frac {2 \text {Subst}\left (\int \frac {1}{1+\frac {a \cos (c+d x)}{b}} \, dx,x,\sqrt {x}\right )}{a} \\ & = \frac {2 \sqrt {x}}{a}-\frac {4 \text {Subst}\left (\int \frac {1}{1+\frac {a}{b}+\left (1-\frac {a}{b}\right ) x^2} \, dx,x,\tan \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )\right )}{a d} \\ & = \frac {2 \sqrt {x}}{a}-\frac {4 b \text {arctanh}\left (\frac {\sqrt {a-b} \tan \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )}{\sqrt {a+b}}\right )}{a \sqrt {a-b} \sqrt {a+b} d} \\ \end{align*}
Time = 0.37 (sec) , antiderivative size = 69, normalized size of antiderivative = 1.01 \[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\frac {2 \left (\frac {c}{d}+\sqrt {x}+\frac {2 b \text {arctanh}\left (\frac {(-a+b) \tan \left (\frac {1}{2} \left (c+d \sqrt {x}\right )\right )}{\sqrt {a^2-b^2}}\right )}{\sqrt {a^2-b^2} d}\right )}{a} \]
[In]
[Out]
Time = 0.34 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.03
method | result | size |
derivativedivides | \(\frac {\frac {4 \arctan \left (\tan \left (\frac {c}{2}+\frac {d \sqrt {x}}{2}\right )\right )}{a}-\frac {4 b \,\operatorname {arctanh}\left (\frac {\left (a -b \right ) \tan \left (\frac {c}{2}+\frac {d \sqrt {x}}{2}\right )}{\sqrt {\left (a -b \right ) \left (a +b \right )}}\right )}{a \sqrt {\left (a -b \right ) \left (a +b \right )}}}{d}\) | \(70\) |
default | \(\frac {\frac {4 \arctan \left (\tan \left (\frac {c}{2}+\frac {d \sqrt {x}}{2}\right )\right )}{a}-\frac {4 b \,\operatorname {arctanh}\left (\frac {\left (a -b \right ) \tan \left (\frac {c}{2}+\frac {d \sqrt {x}}{2}\right )}{\sqrt {\left (a -b \right ) \left (a +b \right )}}\right )}{a \sqrt {\left (a -b \right ) \left (a +b \right )}}}{d}\) | \(70\) |
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 274, normalized size of antiderivative = 4.03 \[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\left [\frac {2 \, {\left (a^{2} - b^{2}\right )} d \sqrt {x} + \sqrt {a^{2} - b^{2}} b \log \left (\frac {2 \, a b \cos \left (d \sqrt {x} + c\right ) - {\left (a^{2} - 2 \, b^{2}\right )} \cos \left (d \sqrt {x} + c\right )^{2} + 2 \, a^{2} - b^{2} - 2 \, {\left (\sqrt {a^{2} - b^{2}} b \cos \left (d \sqrt {x} + c\right ) + \sqrt {a^{2} - b^{2}} a\right )} \sin \left (d \sqrt {x} + c\right )}{a^{2} \cos \left (d \sqrt {x} + c\right )^{2} + 2 \, a b \cos \left (d \sqrt {x} + c\right ) + b^{2}}\right )}{{\left (a^{3} - a b^{2}\right )} d}, \frac {2 \, {\left ({\left (a^{2} - b^{2}\right )} d \sqrt {x} - \sqrt {-a^{2} + b^{2}} b \arctan \left (-\frac {\sqrt {-a^{2} + b^{2}} b \cos \left (d \sqrt {x} + c\right ) + \sqrt {-a^{2} + b^{2}} a}{{\left (a^{2} - b^{2}\right )} \sin \left (d \sqrt {x} + c\right )}\right )\right )}}{{\left (a^{3} - a b^{2}\right )} d}\right ] \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\int \frac {1}{\sqrt {x} \left (a + b \sec {\left (c + d \sqrt {x} \right )}\right )}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 278 vs. \(2 (55) = 110\).
Time = 0.29 (sec) , antiderivative size = 278, normalized size of antiderivative = 4.09 \[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\frac {2 \, {\left (\sqrt {-a^{2} + b^{2}} {\left (a - 2 \, b\right )} d {\left | -a + b \right |} - \sqrt {-a^{2} + b^{2}} {\left | a \right |} {\left | -a + b \right |} {\left | d \right |}\right )} {\left (\pi \left \lfloor \frac {d \sqrt {x} + c}{2 \, \pi } + \frac {1}{2} \right \rfloor + \arctan \left (\frac {\tan \left (\frac {1}{2} \, d \sqrt {x} + \frac {1}{2} \, c\right )}{\sqrt {-\frac {b d + \sqrt {b^{2} d^{2} + {\left (a d + b d\right )} {\left (a d - b d\right )}}}{a d - b d}}}\right )\right )}}{{\left (a^{2} - 2 \, a b + b^{2}\right )} a^{2} d^{2} + {\left (a^{2} b - 2 \, a b^{2} + b^{3}\right )} d {\left | a \right |} {\left | d \right |}} + \frac {2 \, {\left (a d - 2 \, b d + {\left | a \right |} {\left | d \right |}\right )} {\left (\pi \left \lfloor \frac {d \sqrt {x} + c}{2 \, \pi } + \frac {1}{2} \right \rfloor + \arctan \left (\frac {\tan \left (\frac {1}{2} \, d \sqrt {x} + \frac {1}{2} \, c\right )}{\sqrt {-\frac {b d - \sqrt {b^{2} d^{2} + {\left (a d + b d\right )} {\left (a d - b d\right )}}}{a d - b d}}}\right )\right )}}{a^{2} d^{2} - b d {\left | a \right |} {\left | d \right |}} \]
[In]
[Out]
Time = 14.63 (sec) , antiderivative size = 153, normalized size of antiderivative = 2.25 \[ \int \frac {1}{\sqrt {x} \left (a+b \sec \left (c+d \sqrt {x}\right )\right )} \, dx=\frac {2\,\sqrt {x}}{a}+\frac {2\,b\,\ln \left (2\,b\,{\mathrm {e}}^{d\,\sqrt {x}\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}-\frac {b\,\left (a+b\,{\mathrm {e}}^{d\,\sqrt {x}\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}\right )\,2{}\mathrm {i}}{\sqrt {a+b}\,\sqrt {a-b}}\right )}{a\,d\,\sqrt {a+b}\,\sqrt {a-b}}-\frac {2\,b\,\ln \left (2\,b\,{\mathrm {e}}^{d\,\sqrt {x}\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}+\frac {b\,\left (a+b\,{\mathrm {e}}^{d\,\sqrt {x}\,1{}\mathrm {i}}\,{\mathrm {e}}^{c\,1{}\mathrm {i}}\right )\,2{}\mathrm {i}}{\sqrt {a+b}\,\sqrt {a-b}}\right )}{a\,d\,\sqrt {a+b}\,\sqrt {a-b}} \]
[In]
[Out]